package com.canaan.business.mapper.inOutStock;

import com.canaan.business.domain.inOutStock.WmsInStockDetailOrder;

import java.util.List;

/**
 * 入库单明细Mapper接口
 *
 * @author ruoyi
 * @date 2022-12-20
 */
public interface WmsInStockDetailOrderMapper
{
    /**
     * 查询入库单明细
     *
     * @param id 入库单明细主键
     * @return 入库单明细
     */
    public WmsInStockDetailOrder selectWmsInStockDetailOrderById(Long id);

    /**
     * 查询入库单明细列表
     *
     * @param wmsInStockDetailOrder 入库单明细
     * @return 入库单明细集合
     */
    public List<WmsInStockDetailOrder> selectWmsInStockDetailOrderList(WmsInStockDetailOrder wmsInStockDetailOrder);

    /**
     * 新增入库单明细
     *
     * @param wmsInStockDetailOrder 入库单明细
     * @return 结果
     */
    public int insertWmsInStockDetailOrder(WmsInStockDetailOrder wmsInStockDetailOrder);

    /**
     * 修改入库单明细
     *
     * @param wmsInStockDetailOrder 入库单明细
     * @return 结果
     */
    public int updateWmsInStockDetailOrder(WmsInStockDetailOrder wmsInStockDetailOrder);

    /**
     * 删除入库单明细
     *
     * @param id 入库单明细主键
     * @return 结果
     */
    public int deleteWmsInStockDetailOrderById(Long id);

    /**
     * 批量删除入库单明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsInStockDetailOrderByIds(Long[] ids);

    /**
     * 根据入库单列表删除详情信息
     *
     * @param nos 入库单编号列表
     * @return 结果
     */
    public int deleteByOrderNos(List<String> nos);

    int batchInsertInStockDetailOrder(List<WmsInStockDetailOrder> wmsInStockDetailOrders);
}
